package com.wufun.overseas.tools;

import android.app.Dialog;
import android.content.Context;

import com.wufun.overseas.R;

/**
 * Created by tangbl on 2017/12/5 0005.
 */

public class MyDialog extends Dialog {
    Context context;

    public MyDialog(Context context) {
        super(context);
    }

    public MyDialog(final Context context, int theme) {
        super(context, theme);
        setContentView(R.layout.my_dialog);
//        //继续传输
//        findViewById(R.id.dialog_button_ok).setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View view) {
//                dismiss();
//            }
//        });
//        //中断传输
//        findViewById(R.id.dialog_button_cancel).setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View view) {
//                Intent sendDataIntent = new Intent(BluetoothTools.ACTION_STOP_SERVICE);
//                context.sendBroadcast(sendDataIntent);
//                dismiss();
//                ((Activity)context).finish();
//            }
//        });

    }


}
